home *** CD-ROM | disk | FTP | other *** search
/ 600 Games / 600games.iso / Corrida / PMGRacing.swf / scripts / DefineButton2_240 / BUTTONCONDACTION on(release).as < prev   
Encoding:
Text File  |  2001-07-07  |  683 b   |  45 lines

  1. on(release){
  2.    if(car ne "hovercraft")
  3.    {
  4.       startDrag("/car","1");
  5.    }
  6.    else
  7.    {
  8.       startDrag("/hc_control","1");
  9.    }
  10.    tellTarget("/obstacle trigger")
  11.    {
  12.       play();
  13.    }
  14.    if(eval("/:started") eq "1")
  15.    {
  16.       tellTarget("/millisec")
  17.       {
  18.          play();
  19.          tellTarget("/timer")
  20.          {
  21.             play();
  22.          }
  23.          play();
  24.       }
  25.    }
  26.    else
  27.    {
  28.       tellTarget("/start_lights")
  29.       {
  30.          play();
  31.       }
  32.    }
  33.    while(z < "25")
  34.    {
  35.       if("/:ob" add z eq "1")
  36.       {
  37.          tellTarget("/ob" add z)
  38.          {
  39.             play();
  40.          }
  41.       }
  42.       z += "1";
  43.    }
  44. }
  45.